<template>
  <n-scrollbar class="config-scroll-bar">
    <div class="config-wrapper">
      <ConfigFeature v-if="mapStore.configType == 'feature'"></ConfigFeature>
      <ConfigLayer v-else-if="mapStore.configType == 'layer'"></ConfigLayer>
      <ConfigDataset
        v-else-if="mapStore.configType == 'dataset'"
      ></ConfigDataset>
    </div>
  </n-scrollbar>
</template>

<script lang="ts" setup>
import SettingItem from "./components/item.vue";
import SettingCollapse from "./components/collapse.vue";
import { LocationOutline } from "@vicons/ionicons5";
import { useMapStore } from "@/store/map";
import { computed, watch, ref } from "vue";
import ConfigFeature from "./config-feature.vue";
import ConfigLayer from "./config-layer.vue";
import ConfigDataset from "./config-dataset.vue";
const mapStore = useMapStore();
</script>

<style lang="scss" scoped>
.config-scroll-bar {
  height: calc(100vh - 100px);
}
.config-wrapper {
  padding: 8px;
  box-sizing: border-box;
  height: 100%;
}
</style>
